package Eyjafjalla.card.dolly;

import Eyjafjalla.action.EyjafjallaAttackAction;
import Eyjafjalla.action.StarAction;
import Eyjafjalla.action.SuperStarAction;
import Eyjafjalla.card.AbstractEyjafjallaCard;
import Eyjafjalla.modcore.ColorEnum;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.GainGoldAction;
import com.megacrit.cardcrawl.actions.common.HealAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;

public class CXXSS_Eyjafjalla extends AbstractEyjafjallaCard {
    public static final String ID = "CXXSS_Eyjafjalla";
    private static final CardStrings cardStrings;

    public CXXSS_Eyjafjalla(){
        super(ID, cardStrings.NAME,2,cardStrings.DESCRIPTION,CardType.ATTACK, ColorEnum.Eyjafjalla_Dolly_COLOR,CardRarity.RARE,CardTarget.ALL_ENEMY);
        this.baseDamage = 26;
        this.damage =26;
        this.isMultiDamage = true;
        setDolly();
        setFireDescription(cardStrings.EXTENDED_DESCRIPTION[0]);
    }

    @Override
    public AbstractCard makeCopy() {
        return new CXXSS_Eyjafjalla();
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        addToBot(new EyjafjallaAttackAction());
        if(isFire())
            addToBot(new GainGoldAction(10));
        addToBot(new SuperStarAction(this,p,multiDamage,damageTypeForTurn, AbstractGameAction.AttackEffect.FIRE));
    }

    @Override
    public void upgrade() {
        if(!this.upgraded){
            upgradeName();
            upgradeDamage(8);
        }
    }

    static {
        cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
    }
}




